<?php
/**
 * Competitor list
 */
use Fox\Common\Customer;
use Fox\Grid;
$grid = new Grid("gCompetitors");
$grid->fieldcat(array("customerid","name1"));
$grid->setCoche(true);
$grid->setInput(true,true,true,false);
$grid->setFieldAttr(array("customerid","name1"),"SetInput",false);
$grid->setFieldAttr(array("customerid","name1"),"SetHiddenInput",true);
$grid->fieldcat()->field("customerid")->SetHidden();

$grid->footer()->item(Grid::BUTTON_DELETE_LINE)->label("Supprimer");
$grid->footer()->add(new Fox\Html\Button("add","FoxDisplay('addCompetitors','?mod=inquiry&act=competitors&sac=add',null,'InputSerialize(\'eInquiry\')')"));

$block = new Fox\Html\Block("bCompetitors",Msg(Customer::BUNDLE_NAME,18));
$block->add($grid);
$block->collapsed(false);
return $block;